package com.wxapp.custom.api.pojo.vo.address;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * @author lgl
 */
@Data
public class QBaseVo implements Serializable {
    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;
    /**
     * 电话
     */
    @Schema(description = "电话")
    private String mobile;
    /**
     * 省
     */
    @Schema(description = "省")
    @NotEmpty(message = "省 不能为空")
    private String provincialCode;
    /**
     * 省名称
     */
    @Schema(description = "省名称")
    @NotEmpty(message = "省 不能为空")
    private String provincialName;
    /**
     * 市
     */
    @Schema(description = "市")
    @NotEmpty(message = "市不能为空")
    private String cityCode;
    /**
     * 市名
     */
    @Schema(description = "市名")
    @NotEmpty(message = "市不能为空")
    private String cityName;
    /**
     * 区
     */
    @Schema(description = "区")
    @NotEmpty(message = "区不能为空")
    private String areaCode;
    /**
     * 区名称
     */
    @Schema(description = "区名称")
    @NotEmpty(message = "区不能为空")
    private String areaName;

    /**
     * 详细地址
     */
    @Schema(description = "详细地址")
    @NotEmpty(message = "详细地址不能为空")
    private String detail;
    /**
     * 是否默认地址
     */
    @Schema(description = "是否默认地址")
    @NotNull(message = "默认地址不能为空")
    private Boolean defaulted;
}
